<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="../js/jquery-3.4.1.js"></script>
    <script src="../bootstrap-3.3.7-dist/js/bootstrap.js"></script>
    <link href="../bootstrap-3.3.7-dist/css/bootstrap.css" rel="stylesheet ">
    <link href="../css/change-permissions.css" rel="stylesheet ">
    <link href="../css/PublicCss.css" rel="stylesheet ">
    <link href="../css/class-information.css" rel="stylesheet ">

</head>

<body onload="addCode()">
<p style="width: 100%; height: 50px;;line-height: 50px; background: #2C3B41; color: white; padding-left: 250px; margin: 0;">
						<strong>位置</strong>: 班级管理>为班级添加年级
					</p>
    <div class="container">
        <div class="row clearfix">


            
        </div>
        <div class="row clearfix">
            <div class="col-md-1 column" id="basic_1">
                <span>基本信息</span>
            </div>
            <div class="col-md-11 column" id="basic_2">
            </div>
        </div>

        <div class="col-md-12 column">
            <table class="table table-bordered">
                <thead>
                    <tr bgcolor="#DFF0D8">
                        <th>
                            <div class="checkbox">
                                <label>
                                              <input type="checkbox" id="blankCheckbox-1" value="option1" aria-label="...">
                                            </label>
                            </div>

                        </th>
                        <th>
                            年级编号
                        </th>
                        <th>
                            年级名称
                        </th>
                        <th>
                            创建人
                        </th>
                        <th>
                            创建时间
                        </th>
                        <th>
                            操作
                        </th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>
                            <div class="checkbox">
                                <label>
                                              <input type="checkbox" id="blankCheckbox" value="option1" aria-label="...">
                                            </label>
                            </div>

                        </td>
                        <td id="txtID">

                        </td>
                        <td>
                            软件1831
                        </td>
                        <td>
                            张三
                        </td>
                        <td>

                        </td>
                        <td>
                            <a href="">详细</a>
                        </td>
                    </tr>
                    <tr class="success">
                        <td>
                            <div class="checkbox">
                                <label>
                                              <input type="checkbox" id="blankCheckbox" value="option1" aria-label="...">
                                            </label>
                            </div>

                        </td>
                        <td id="txtID">

                        </td>
                        <td>
                            软件1831
                        </td>
                        <td>

                        </td>
                        <td id="showtime">

                        </td>
                        <td>
                            <a href="">详细</a>
                        </td>

                    </tr>
                    <tr class="error">
                        <td>
                            <div class="checkbox">
                                <label>
                                              <input type="checkbox" id="blankCheckbox" value="option1" aria-label="...">
                                            </label>
                            </div>

                        </td>
                        <td id="txtID">

                        </td>
                        <td>
                            软件1831
                        </td>
                        <td>

                        </td>
                        <td>

                        </td>

                        <td>
                            <a href="">详细</a>
                        </td>
                    </tr>
            </table>
        </div>
    </div>
    <!-- Indicates a successful or positive action -->
    <button type="button" class="btn btn-success" onclick="ct()">添加</button>
    </div>

</body>
<script>
    function addCode() {
        //获取1970到现在的时间（毫秒显示）
        var mydate = new Date();
        //截取后六位
        var Code = mydate.getTime().toString().slice(5, 11);
        //获取教师账号标签
        var TeacherCode = document.getElementById("txtID");
        //添加生成随机账号
        TeacherCode.innerHTML = "t" + Code;
    }


    function ajax() {
        $.ajax({
            url: "/blackhouse/classinfo",
            type: "post",
            dataType: "json",
            success: function(e) {

            }
        })
    }
</script>

</html>